package com.ruifight.data.service.impl;

import com.ruifight.data.bean.DataBean;
import com.ruifight.data.dao.DataDao;
import com.ruifight.data.service.IDataServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by liuhx on 2016/11/23.
 */
@Service("dataService")
public class DataService implements IDataServer {
    DataDao dataDao;

    public DataDao getDataDao() {
        return dataDao;
    }
    @Autowired
    public void setDataDao(DataDao dataDao) {
        this.dataDao = dataDao;
    }

    @Override
    public void insert(DataBean dataBean) {
        dataDao.insert(dataBean);
    }
}
